/**
Date: 2025-08-13
Copyright (c) 2025 Industrial Software Feature Database
*/
import request from '@/utils/request';
// 业务场景列表
export function getBusinessSystemList(data) {
  return request({
    url: '/isfd/business/scenarios/list',
    method: 'post',
    data
  });
}

// 新增业务场景
export function addBusinessSystem(data) {
  return request({
    url: '/isfd/business/scenarios/add',
    method: 'post',
    data
  });
}

// 删除业务场景
export function deleteBusinessSystem(id) {
  return request({
    url: `/isfd/business/scenarios/${id}`,
    method: 'delete'
  });
}

// 业务场景详情
export function getBusinessSystemDetail(params) {
  return request({
    url: '/isfd/business/scenarios/detail',
    method: 'get',
    params
  });
}

// 修改业务场景
export function updateBusinessSystem(data) {
  return request({
    url: '/isfd/business/scenarios/update',
    method: 'post',
    data
  });
}

// 左侧树
export function getTreeList(param) {
  return request({
    url: `/isfd/business/scenarios/tree`,
    method: 'get',
    params: param
  });
}